package com.own.component.autoconfig.property.netty;

import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * WebSocketProperties
 *
 * @author chenxueli
 * @date 2022-06-15 03:14:15
 */
@Data
@SpringBootConfiguration
@ConfigurationProperties(prefix = NettyProperties.PREFIX)
@SuppressWarnings("all")
public class NettyProperties {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "netty";

    /**
     * webSocket端口
     */
    private int port = 8081;
    /**
     * 配置访问ip
     */
    private String ip = "0.0.0.0";
    /**
     * 默认路径
     */
    private String path = "/channel";
    /**
     * 最大连接数
     */
    private long maxFrameSize = 10240L;

}
